home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / graphics / gnuplot / makefile.msc < prev    next >
Makefile  |  1993-09-15  |  4KB  |  147 lines

  1. #
  2. # $Id: makefile.msc%v 3.50 1993/07/09 05:50:28 woo Exp $
  3. #
  4. # Make file for use with Microsoft C  Version 5.10
  5. # and Microsoft Program Maintenance Utility  Version 4.07
  6.  
  7. # where to place gnuplot.gih helpfile
  8. HELPFILE = gnuplot.gih
  9.  
  10. # /c  means don't link
  11. # /AL means large memory model (large code, large data)
  12. # /DPC means define symbol PC
  13. # /DLITE means no hiddenline removal
  14. # /Gt means no 64k segment problem
  15. CFLAGS = /c /AL /DPC /DREADLINE /DLITE /Gt /D__MSC__ #/Zi #/Od
  16.  
  17. # see other terminal defines in term.h
  18. TERMFLAGS = 
  19.  
  20. # /NOE means NO EXTernal Dictionary
  21. # /EX  means pack EXE file
  22. # /ST:10000 means stack size 10000 bytes
  23. LINKFLAGS = /NOE /EX /ST:10000 /ONERROR:NOEXE #/codeview 
  24.  
  25. OBJS =     bitmap.obj command.obj contour.obj eval.obj graphics.obj graph3d.obj \
  26.     help.obj internal.obj misc.obj parse.obj plot.obj readline.obj \
  27.     scanner.obj setshow.obj standard.obj term.obj util.obj version.obj \
  28.     pcgraph.obj hrcgraph.obj corgraph.obj specfun.obj gnubin.obj \
  29.     binary.obj
  30.  
  31. CSOURCE5 = term\aed.trm term\cgi.trm term/dumb.trm term/dxf.trm term\dxy.trm \
  32.     term\eepic.trm term\epson.trm term\fig.trm term\hp26.trm \
  33.     term\hp2648.trm term\hpgl.trm term\hpljii.trm 
  34. CSOURCE6 = term\impcodes.h term\imagen.trm term\object.h \
  35.     term\iris4d.trm term\kyo.trm term\latex.trm term/pbm.trm term\pc.trm 
  36. CSOURCE7 = term\post.trm term\qms.trm term\regis.trm term\sun.trm \
  37.     term\t410x.trm term\tek.trm term\unixpc.trm term\unixplot.trm \
  38.     term\v384.trm term\x11.trm
  39. CSOURCE8 = contour.c gnubin.c binary.c
  40.  
  41. # default rules
  42. .c.obj:
  43.     cl $(CFLAGS) $*.c
  44.  
  45. .asm.obj:
  46.     masm $*;
  47.  
  48. default: gnuplot.exe $(HELPFILE) demo\bf_test.exe
  49.  
  50. linkopt.msc: makefile.msc
  51.       echo pcgraph+hrcgraph+corgraph+bitmap+ >linkopt.msc
  52.       echo term+graphics+graph3d+contour+ >>linkopt.msc
  53.       echo plot+setshow+command+help+internal+ >>linkopt.msc
  54.       echo misc+specfun+gnubin+binary+readline+ >>linkopt.msc
  55.       echo parse+eval+scanner+standard+util+version >>linkopt.msc
  56.       echo gnuplot >>linkopt.msc
  57.       echo nul; >>linkopt.msc
  58.  
  59. pcgraph.obj: pcgraph.asm header.mac lineproc.mac
  60.  
  61. corgraph.obj: corgraph.asm header.mac lineproc.mac
  62.  
  63. hrcgraph.obj: hrcgraph.asm header.mac lineproc.mac
  64.  
  65. binary.obj: binary.c 
  66.  
  67. bitmap.obj: bitmap.c bitmap.h plot.h
  68.  
  69. command.obj: command.c plot.h setshow.h help.h
  70.     cl $(CFLAGS) /DHELPFILE=\"$(HELPFILE)\" command.c
  71.  
  72. contour.obj: contour.c plot.h
  73.  
  74. eval.obj: eval.c plot.h
  75.  
  76. gnubin.obj: gnubin.c
  77.  
  78. graphics.obj: graphics.c plot.h setshow.h
  79.  
  80. graph3d.obj: graphics.c plot.h setshow.h
  81.  
  82. help.obj: help.c plot.h help.h
  83.  
  84. internal.obj: internal.c plot.h
  85.  
  86. misc.obj: misc.c plot.h setshow.h
  87.  
  88. parse.obj: parse.c plot.h
  89.  
  90. plot.obj: plot.c plot.h setshow.h
  91.  
  92. readline.obj: readline.c
  93.  
  94. scanner.obj: scanner.c plot.h
  95.  
  96. setshow.obj: setshow.c plot.h setshow.h
  97.  
  98. standard.obj: standard.c plot.h
  99.  
  100. specfun.obj: specfun.c plot.h
  101.  
  102. term.obj: term.c term.h plot.h setshow.h bitmap.h $(CSOURCE5) $(CSOURCE6) $(CSOURCE7)
  103.     cl $(CFLAGS) $(TERMFLAGS) /Iterm term.c
  104.  
  105. util.obj: util.c plot.h
  106.  
  107. version.obj: version.c
  108.  
  109. # convert gnuplot.doc to gnuplot.gih
  110. doc2gih.exe: docs\doc2gih.c
  111.     cl docs\doc2gih.c
  112.  
  113. $(HELPFILE): doc2gih.exe docs\gnuplot.doc
  114.     doc2gih docs\gnuplot.doc $(HELPFILE)
  115.  
  116. # Object files in link command line are ordered to avoid far jumps.
  117. # use linkopt.msc to avoid command-line overflow
  118.  
  119. gnuplot.exe: $(OBJS) linkopt.msc
  120.  link $(LINKFLAGS) @linkopt.msc
  121.  
  122. #make binary demo files
  123. demo\bf_test.exe: bf_test.c dbinary.obj
  124.       cl /AL /DPC /D__MSC__ /F 5000 /Gt /W1 /Fedemo\bf_test.exe bf_test.c dbinary.obj
  125.       cd demo
  126.       bf_test
  127.       cd ..
  128.  
  129. dbinary.obj: binary.c
  130.       cl /c /AL /DPC /D__MSC__ /F 5000 /Gt /W1 /Fodbinary.obj binary.c
  131.  
  132. # clean up temporary files
  133. clean:
  134.       del *.obj
  135.       del gnuplot.map
  136.       del demo\bf_test.exe
  137.       del linkopt.msc
  138.       
  139. veryclean: clean
  140.       del gnuplot.exe
  141.       del $(HELPFILE)
  142.       del demo\binary1
  143.       del demo\binary2
  144.       del demo\binary3
  145.  
  146.